// 停车管理
import { isParkCouponGroupId } from "@/utils/globalTypes.ts";

export default [
    {
        path: '/parkCouponView',
        name: 'parkcoupon',
        redirect: '/parkCouponList',
        meta: {
            highlight: true,
            name: '停车券',
            group_id: isParkCouponGroupId,
        },
        children: [
            {
                path: '/parkCouponList',
                name: 'ParkCouponList',
                component: () => import('@/views/MarketingCenter/CouponManage/FlashCoupon/index.vue'),
            },
            {
                path: '/parkCouponEdit/:origin/:group_id',
                name: 'ParkCouponEdit',
                component: () => import('@/views/MarketingCenter/CouponManage/FlashCoupon/Edit/index.vue'),
                meta: {
                    showBack: true,
                    name: '编辑停车优惠券',
                },
            },
            {
                path: '/parkCouponDetail/:origin/:id/:group_id',
                name: 'ParkCouponDetail',
                component: () => import('@/views/MarketingCenter/CouponManage/FlashCoupon/Detail/index.vue'),
                meta: {
                    showBack: true,
                    name: '停车券详情',
                },
            },
            {
                path: '/couponReport/:origin/:id',
                name: 'CouponReport',
                component: () => import('@/views/MarketingCenter/CouponManage/FlashCoupon/Report/index.vue'),
                meta: {
                    showBack: true,
                    name: '数据报表',
                },
            }
        ]
    }
]